//获取应用实例
let app = getApp();
Page({
    data: {
        orderIdList: [],
        isShowFootNav: false
    },
    toBack () {
        wx.navigateBack();
    },
    onLoad() {
	    app.setStorageSync(app.globalData.paySuccessSign,1)  //到了支付成功页首页回复默认值
        let data = app.getStorageSync(app.globalData.paySuccess),
        formResult = app.getStorageSync(app.globalData.cacheConfirem);
        console.log(formResult)
        wx.setNavigationBarTitle({
            title: formResult.licensingWay == 1?'申请成功':'支付成功',
        })
        this.setData({
            directType: formResult.directType,
            payType: formResult.licensingWay,
            orderIdList: data
        });
        app.removeStorageSync(app.globalData.cacheData);
    },
    onHide() {

  	},
    detailTap(e) {
        let orderId = e.currentTarget.dataset.id;
        app.redirectTo({
            url: '../orderdetail/orderdetail?orderId='+orderId
        });
    }
});
